package com.itstyle.seckill.common.designPattern.zhuangtai;

public class On implements State {
    @Override
    public void switchOn(Switcher switcher) {
        System.out.println("warn!!开通状态无需在开");
    }

    @Override
    public void switchOff(Switcher switcher) {
        switcher.setState(new Off());
        System.out.println("OK...灯灭");
    }
}
